package core.scan;


import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.QName;
import org.dom4j.io.SAXReader;

import java.io.File;

public class InitXmlParams {

    public void parseXml(String fileName, String... packagePaths) throws Exception {
        Document[] documents = new Document[packagePaths.length];
        for(int i = 0 ; i < packagePaths.length ; i++){
            SAXReader saxReader = new SAXReader();
            documents[i] = saxReader.read(new File(packagePaths[i] + fileName));
        }
    }

    private void parseNode(Document document){
        Element root = document.getRootElement();
        QName qName = root.getQName("");
        qName.getDocumentFactory();
    }
}
